<template>
    <nut-button type="primary" @click="linkToTab()">回到首页</nut-button>
</template>

<script setup>
import Taro from '@tarojs/taro'

const linkToTab = () => {
    Taro.switchTab({
        url: '/pages/index/index'
    })
}
</script>
